// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

import BaseCharacterElement from "../BaseCharacterElement";
import BaseAttackState from "../States/BaseAttackState";
import Hero2004IdleState from "./Hero2004IdleState";
import Hero2004RunState from "./Hero2004RunState";

const { ccclass, property } = cc._decorator;

@ccclass
export default class Hero2004Element extends BaseCharacterElement {

    protected onLoad(): void {
        super.onLoad();
        this.idleState = new Hero2004IdleState(this, "run");
        this.runState = new Hero2004RunState(this, "run");
        this.attackState = new BaseAttackState(this, "attack");
    }
}
